package org.csu.mypetstore.domain.PO;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@TableName("item")
@JsonIgnoreProperties(value = {"handler"})
//json序列化的时候空的数据不被包含
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
public class Item implements Serializable {

  private static final long serialVersionUID = -2159121673445254631L;

  @TableField("itemId")
  private String itemId;
  @TableField("productId")
  private String productId;
  @TableField("listPrice")
  private BigDecimal listPrice;
  @TableField("unitCost")
  private BigDecimal unitCost;
  @TableField("attribute1")
  private String attribute1;
  @TableField("attribute2")
  private String attribute2;
  @TableField("attribute3")
  private String attribute3;
  @TableField("attribute4")
  private String attribute4;
  @TableField("attribute5")
  private String attribute5;
}
